package model

import (
	"time"
)

type User struct {
	Age      int       `gorm:"column:age"`            //年龄
	Datetime time.Time `gorm:"column:datetime"`       //登录时间
	Email    string    `gorm:"column:email"`          //邮箱
	ID       int       `gorm:"column:id;primary_key"` //用户id
	NickName string    `gorm:"column:nickName"`       //用户姓名
	Phone    string    `gorm:"column:phone"`          //手机号
	Remake   string    `gorm:"column:remake"`         //备注
	Roleid   int       `gorm:"column:roleid"`         //角色id
	Sex      int       `gorm:"column:sex"`            //性别
	UserName string    `gorm:"column:userName"`       //登录账号
	PassWord string    `gorm:"column:passWord"`       //登录账号

}

// TableName sets the insert table name for this struct type
func (u *User) TableName() string {
	return "sys_user"
}
